package ssm.another;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by libing on 2016/12/13.
 */
public class HomeLoginServiceImpl implements HomeLoginService {

    @Autowired
    HomeLoginMapper homeLoginMapper;

    @Override
    public int checkExist(User user) throws Exception {
        return homeLoginMapper.checkExist(user);
    }

    @Override
    public User selectPasswordAndKey(String phone) throws Exception {
        return homeLoginMapper.selectPasswordAndKey(phone);
    }
}
